package com.wangyadong.hobby.schedule.jobtask.tree.pq;

import java.util.Comparator;


/**
 * <p>
 *
 * @author <714037465@qq.com>
 * @since 2018/8/2812:58
 **/
public class DefaultComparator<E> implements Comparator<E> {

    @Override
    public int compare(E o1, E o2) {
        if (o1 == null) {
            System.out.println(o1);
        }
        return ((Comparable<E>) o1).compareTo(o2);
    }
}
